<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>maven ssh框架测试</title>
<script type="text/javascript" src="${res}/js/jquery-1.6.1.js"></script>
<script type="text/javascript">
var ctxpath="${ctx}";
function testJms(){
	$.ajax({
		type:"post",
		url:ctxpath+"/notice",
		data:{},
		dataType:"html",
		success:function(data){
			alert(data);
		},
		error:function(){
			alert("网络异常！");
		}
		});
}
</script>
</head>
<body>
<h1>maven ssh测试</h1>
<form action="${ctx}/enter" method="post">
<p>姓名：<input type="text" name="name"/></p>
<p>密码：<input type="password" name="pw"/></p>
<input type="submit" value="enter" /></form>

<input type="button" value="测试 jms" onclick="testJms()"/>
</body>
</html>
